package com.kgc.sportscircle.utils;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

import java.util.HashMap;
import java.util.Map;

public class ResultUtil {

    public static Map resultMap(Boolean flag,String msg,Object object){
            Map<String,Object> map = new HashMap<String,Object>();
        map.put("flag",flag);
        map.put("msg",msg);
        if (object!=null){
            map.put("json", object);
        }
        return map;
    }
}
